<?php

namespace Clot\WebBundle\Controller;

use Symfony\Component\HttpFoundation\Request;

class RegisterController extends BaseController
{

    public function indexAction(Request $request)
    {
       	if ($request->getMethod() == 'POST') {
            $conditions = $fields = $request->request->all();

            var_dump($conditions);exit();
        };

/*                $user = $this->getAuthService()->register($registration);
                $this->authenticateUser($user);
                $this->sendRegisterMessage($user);

                $goto = $this->generateUrl('register_submited', array(
                    'id' => $user['id'], 'hash' => $this->makeHash($user)
                ));

                if ($this->getAuthService()->hasPartnerAuth()) {
                    return $this->redirect($this->generateUrl('partner_login', array('goto' => $goto)));
                }

                return $this->redirect($goto);*/
            
        

        return $this->render("ClotWebBundle:Register:index.html.twig");
    }

}